adding stories, scaffold
This commit is contained in:
12
db/migrate/20230111164425_create_stories.rb
Normal file
12
db/migrate/20230111164425_create_stories.rb
Normal file
@ -0,0 +1,12 @@
|
||||
class CreateStories < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :stories do |t|
|
||||
t.string :picture
|
||||
t.string :header
|
||||
t.text :text
|
||||
t.date :happened
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user