mirror of
https://github.com/github/rails.git
synced 2026-01-30 08:48:06 -05:00
Migrations should use symbols now that the schema dumper is switching to that as well [Suggested by Robby Russel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
class <%= migration_name %> < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table "<%= table_name %>" do |t|
|
||||
# t.column "name", :string
|
||||
create_table :<%= table_name %> do |t|
|
||||
# t.column :name, :string
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "<%= table_name %>"
|
||||
drop_table :<%= table_name %>
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user