mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
13 lines
303 B
Ruby
13 lines
303 B
Ruby
ActiveRecord::Schema.define do
|
|
create_table :topics, :force => true do |t|
|
|
t.string :title
|
|
t.string :author_name
|
|
t.text :content
|
|
t.boolean :approved, :default => true
|
|
t.string :type
|
|
end
|
|
|
|
create_table :developers, :force => true do |t|
|
|
t.string :name
|
|
end
|
|
end
|