Initial commit
This commit is contained in:
commit
0cec39413f
116 changed files with 9683 additions and 0 deletions
13
db/migrate/20210319142054_create_books.rb
Normal file
13
db/migrate/20210319142054_create_books.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
class CreateBooks < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :books do |t|
|
||||
t.string :title
|
||||
t.decimal :price, precision: 10, scale: 2
|
||||
t.boolean :published
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :books, :published
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue