diff options
author | Konstantin Shabanov <etehtsea@gmail.com> | 2012-09-07 22:27:08 +0400 |
---|---|---|
committer | Konstantin Shabanov <etehtsea@gmail.com> | 2012-09-08 11:09:49 +0400 |
commit | b485b8a06626be3a1b8a2037092a9dda1b28e8a4 (patch) | |
tree | 139444ad3ba8d37f2b28c3c8e66f5a97261cd0ef /activerecord/lib/active_record/schema.rb | |
parent | f415475621c79cbc2d93e1ecf10805a4100a5d43 (diff) | |
download | rails-b485b8a06626be3a1b8a2037092a9dda1b28e8a4.tar.gz rails-b485b8a06626be3a1b8a2037092a9dda1b28e8a4.tar.bz2 rails-b485b8a06626be3a1b8a2037092a9dda1b28e8a4.zip |
Dump schema using new style hash
Diffstat (limited to 'activerecord/lib/active_record/schema.rb')
-rw-r--r-- | activerecord/lib/active_record/schema.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/schema.rb b/activerecord/lib/active_record/schema.rb index a540bc0a3b..eaa4aa7086 100644 --- a/activerecord/lib/active_record/schema.rb +++ b/activerecord/lib/active_record/schema.rb @@ -11,16 +11,16 @@ module ActiveRecord # # ActiveRecord::Schema.define do # create_table :authors do |t| - # t.string :name, :null => false + # t.string :name, null: false # end # # add_index :authors, :name, :unique # # create_table :posts do |t| - # t.integer :author_id, :null => false + # t.integer :author_id, null: false # t.string :subject # t.text :body - # t.boolean :private, :default => false + # t.boolean :private, default: false # end # # add_index :posts, :author_id @@ -50,7 +50,7 @@ module ActiveRecord # The +info+ hash is optional, and if given is used to define metadata # about the current schema (currently, only the schema's version): # - # ActiveRecord::Schema.define(:version => 20380119000001) do + # ActiveRecord::Schema.define(version: 20380119000001) do # ... # end def self.define(info={}, &block) |