2
次のコードを実行するにはどうすればよいですか?私は私のために働く構文を見つけることができません。アクティブレコードtable_exists?構文
#Create the table
if table_exists?(tablename)
puts "table found"
else
ActiveRecord::Schema.define do
create_table :data do |table|
table.column :date, :string
table.column :word, :string
table.column :website, :string
end
puts "table created"
end