diff --git a/config/environment.rb b/config/environment.rb index f556be3a..2b551925 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -18,7 +18,7 @@ Rails::Initializer.run do |config| # Use Active Record's schema dumper instead of SQL when creating the test database # (enables use of different database adapters for development and test environments) - config.active_record.schema_format = :ruby + config.active_record.schema_format = :sql config.load_paths << "#{RAILS_ROOT}/vendor/plugins/sqlite3-ruby" File.umask(0026) diff --git a/db/migrate/001_beta1_schema.rb b/db/migrate/001_beta1_schema.rb index bac65340..63b2ee7f 100644 --- a/db/migrate/001_beta1_schema.rb +++ b/db/migrate/001_beta1_schema.rb @@ -14,7 +14,7 @@ class Beta1Schema < ActiveRecord::Migration t.column "updated_at", :datetime, :null => false t.column "revised_at", :datetime, :null => false t.column "page_id", :integer, :default => 0, :null => false - t.column "content", :text, :default => "", :null => false + t.column "content", :text t.column "author", :string, :limit => 60 t.column "ip", :string, :limit => 60 end