Browse files

Changed round data to bigint

  • Loading branch information...
1 parent 2c9d45b commit 682ede8c81b257d903f267fb0533aa4d69732b35 @Jarred-Sumner committed Feb 17, 2012
View
6 db/migrate/20120209014342_create_rounds.rb
@@ -10,9 +10,9 @@ def change
t.date :first_investment
t.date :end_date
t.integer :raised, :default => 0
- t.integer :tried_to_raise, :default => 0
- t.integer :investor_count, :default => 0
- t.integer :minimum_invested
+ t.integer :tried_to_raise, :default => 0
+ t.integer :investor_count, :default => 0
+ t.integer :minimum_invested
t.boolean :merger
t.boolean :acquired
t.timestamps
View
9 ...raised_and_tried_to_raise_and_investor_count_and_minimum_invested_to_bigint_for_rounds.rb
@@ -0,0 +1,9 @@
+class ChangeRaisedAndTriedToRaiseAndInvestorCountAndMinimumInvestedToBigintForRounds < ActiveRecord::Migration
+ def change
+ change_column :rounds, :raised, :bigint
+ change_column :rounds, :tried_to_raise, :bigint
+ change_column :rounds, :investor_count, :bigint
+ change_column :rounds, :minimum_invested, :bigint
+
+ end
+end
View
2 db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120217201405) do
+ActiveRecord::Schema.define(:version => 20120218001154) do
create_table "companies", :force => true do |t|
t.string "name"
View
2 lib/tasks/sec.rake
@@ -48,5 +48,5 @@ namespace :sec do
end
end
task 'deploy' => :environment do
- exec 'bundle install --deployment && bundle exec rake db:migrate RAILS_ENV=production && bundle exec rake sec:download && bundle exec rake sec:load:disk:all && bundle exec rake assets:precompile RAILS_ENV=production'
+ exec 'bundle install --deployment && bundle exec rake db:migrate RAILS_ENV=production && bundle exec rake sec:download RAILS_ENV=production && bundle exec rake sec:load:disk:all RAILS_ENV=production && bundle exec rake assets:precompile RAILS_ENV=production'
end

0 comments on commit 682ede8

Please sign in to comment.