Initial commit
This commit is contained in:
commit
0cec39413f
116 changed files with 9683 additions and 0 deletions
12
db/migrate/20210319142051_create_authors.rb
Normal file
12
db/migrate/20210319142051_create_authors.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
class CreateAuthors < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :authors do |t|
|
||||
t.string :first_name
|
||||
t.string :last_name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :authors, [ :first_name, :last_name ]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue